const Koa = require('koa')
const app = new Koa()
app.use((ctx, next) => {
  ctx.body = [
    {
      name: 'tom',
    },
  ]
  await next()
})
app.use((ctx, next) => {
  const start = new Date().getTime()
  console.log(`start : ${ctx.url}`);
  await next()
})
app.listen(3000)